package com.vnp.cooking.utils;

public class Capitalize {
	public static String toFirstLetterUpcase(String s) {
        String[] arr = s.split(" ");
        StringBuffer sb = new StringBuffer();
        for (int i = 0; i < arr.length; i++) {
        sb.append(Character.toUpperCase(arr[i].charAt(0))).append(arr[i].substring(1)).append(" ");
        }          
      return sb.toString().trim();
    } 
	
	public static String toOnlyFirstUpcase( String s) {
		return  s.substring(0,1).toUpperCase() + s.substring(1);
	}
}
